package comxyp.mapper.workbench;

import comxyp.pojo.workbench.Activity;
import comxyp.pojo.workbench.ActivityExample;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

public interface ActivityMapper {
    long countByExample(ActivityExample example);
    int deleteByExample(ActivityExample example);
    int deleteByPrimaryKey(String id);
    //批量删除
    public int deleteByIdAll(String[] id);
    //批量选择导出
    public  List<Activity> findById(String[] id);
    //批量保存所有的市场活动
    public int insertActivityByList(List<Activity> activityList);
    int insert(Activity record);

    int insertSelective(Activity record);

    List<Activity> selectByExample(ActivityExample example);
    //查询所有数据
    List<Activity> selectActivity();
    List<Activity> selectByName (@Param("name") String name,@Param("owner")String owner);
    Activity selectByPrimaryKey(String id);

    int updateByExampleSelective(@Param("record") Activity record, @Param("example") ActivityExample example);

    int updateByExample(@Param("record") Activity record, @Param("example") ActivityExample example);

    int updateByPrimaryKeySelective(Activity record);

    int updateByPrimaryKey(Activity record);
    //根据姓名活动查询并且分页
    List<Activity> selectActivityByConditionForPage(Map<String,Object> map);
    //查询总条数
    int selectCountOfActivityByCondition(Map<String,Object> map);
}